import request from '../config/indexNew'

/**
 *  获取账号列表
 **/
export const getAccountList = (data?: any) => {
  return request({
    url: '/api/win-tool/user/list',
    method: 'POST',
    data
  })
}

/**
 *  添加账号
 **/
export const addAccount = (data?: any) => {
  return request({
    url: '/api/dashboard/build-client',
    method: 'GET',
    params: data
  })
}

/**
 *  获取图片链接
 **/
export const getImageUrl = (data?: any) => {
  return request({
    url: '/api/common/file/preview',
    method: 'GET',
    params: data
  })
}

// 登出
export const doLogout = async (data) => {
  return await request.post('/api/aggregate-chat/user/logout  ', data)
}